import request from '@/utils/request'

// 获取分类列表
export const getCategoryList = (id) => {
  return request({
    url: '/category',
    params:{
        id
    }
  })
}
//获取二级分类列表数据
export const getCategoryFilter = (id) => {
  return request({
    url:'/category/sub/filter',
    params:{
      id
    }
  })
}
//获取导航数据
export const getSubCategory = (data) => {
  return request({
    url:'/category/goods/temporary',
    method:'POST',
    data
  })
}